//封装获取月卡table列表函数
import request from '@/utils/request'
// 获取月卡table列表函数
export function getCartListAPI(params) {
    return request({
        url: 'parking/card/list',
        method: 'get',
        params
    })
}
//添加月卡函数
export function addCartAPI(data) {
    return request({
        url: 'parking/card',
        method: 'post',
        data
    })
}
//获取编辑页月卡详情
export function getCardDetailAPI(id) {
    return request({
        url: `parking/card/detail/${id}`,
        method: 'get'
    })
}
//更新月卡详情
export function updateCardAPI(data) {
    return request({
        url: `parking/card/edit`,
        method: 'put',
        data
    })
}